import Vue from 'vue'
import ElementUI from 'element-ui';
import App from './App.vue'
import router from './router'
import 'element-ui/lib/theme-chalk/index.css';
import store from './store'
import {getJson, postJson, exportJson} from '@/http/axiosReq.js'
import filters from '@/utils/filters.js';

import './styles/index.scss'// global css


Vue.use(ElementUI);
Vue.config.productionTip = false

// 定义全局的post/get方法
Vue.prototype.$postJson = postJson;
Vue.prototype.$getJson = getJson;
Vue.prototype.$exportJson = exportJson;
// 定义全局变量-前端默认前缀路径(router.js中也有定义)
Vue.prototype.$PREFIX_PATH = '';
Vue.prototype.$SIGN_SWITCH = false; // 修改/删除时是否签名

// 配置通用过滤器
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
